package itheima.com.zuoye.d01;

public class Recruiter extends Insiders{
    private double commission;
    @Override
    public void work() {
//        工号为xxx的xxx的招聘经理，拿着xxx的工资，正在Boss直评上招人，招一个提成xxx元。
        System.out.println("工号为"+getId()+"的"+getName()+"的招聘经理，拿着"+getSalary()+"的工资，正在Boss直评上招人，招一个提成"+commission+"元。");
    }

    public Recruiter(String name, int id, double salary, double commission) {
        super(name, id, salary);
        this.commission = commission;
    }

    public Recruiter(double commission) {
        this.commission = commission;
    }
}
